
const state = {
  //主菜单选中
  ACTIVE_NAME:'1',

  //判断登录设备 pc:null, wx:true
  PC_OR_WX:null,


  //产品展示选中
  // PRODUCT_TAB_NO: '3-1',



};

const mutations = {

  SET_ACTIVE_NAME(state, activeName) {
    state.ACTIVE_NAME = activeName;
  },
  SET_PC_OR_WX(state, pcOrWx) {
    state.PC_OR_WX = pcOrWx;
  },

  // SET_PRODUCT_TAB_NO(state, productTabNo) {
  //   state.MENUTABNO = productTabNo;
  // },
};

const actions = {

  setActiveName({commit}, activeName) {
    commit('SET_ACTIVE_NAME', activeName);
  },
  setPcOrWx({commit}, pcOrWx) {
    commit('SET_PC_OR_WX', pcOrWx);
  },


  // setProductTabNo({commit}, productTabNo) {
  //   commit('SET_PRODUCT_TAB_NO', productTabNo);
  // },
};

export default {
  state,
  mutations,
  actions
}
